<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>mechanoChemIGA: initBounValProbs/CahnHilliard_threeSpecies/2D_variableM/userFunctions.cc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">mechanoChemIGA
   &#160;<span id="projectnumber">0.2.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="codestructure.html"><span>Code&#160;structure</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li><a href="modules.html"><span>Functions</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="https://github.com/mechanoChem/mechanoChem"><span>GitHub&#160;code&#160;repo</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6be5612a0ca85849dc727f1bccfb7d17.html">initBounValProbs</a></li><li class="navelem"><a class="el" href="dir_d427244d354bf75df6d83e680d673188.html">CahnHilliard_threeSpecies</a></li><li class="navelem"><a class="el" href="dir_5a8b166934af49cbb922218e406d2478.html">2D_variableM</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">userFunctions.cc File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="user_functions_8h_source.html">userFunctions.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="user_functions_instantiation_8h_source.html">userFunctionsInstantiation.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a36a086407db8194a41f565f2bf6100fd"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim&gt; </td></tr>
<tr class="memitem:a36a086407db8194a41f565f2bf6100fd"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_cahn_hilliard__three_species_22_d__variable_m_2user_functions_8cc.html#a36a086407db8194a41f565f2bf6100fd">userBoundaryConditions</a> (<a class="el" href="struct_app_ctx.html">AppCtx</a>&lt; dim &gt; &amp;user, double scale)</td></tr>
<tr class="separator:a36a086407db8194a41f565f2bf6100fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a360bfcfddf6eb0952d9904c883f3f741"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim&gt; </td></tr>
<tr class="memitem:a360bfcfddf6eb0952d9904c883f3f741"><td class="memTemplItemLeft" align="right" valign="top">double&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_cahn_hilliard__three_species_22_d__variable_m_2user_functions_8cc.html#a360bfcfddf6eb0952d9904c883f3f741">userScalarInitialConditions</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, double &gt; &amp;x, unsigned int scalar_i, <a class="el" href="struct_app_ctx.html">AppCtx</a>&lt; dim &gt; &amp;user)</td></tr>
<tr class="separator:a360bfcfddf6eb0952d9904c883f3f741"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebdeb012e0f6180a175f6279b59d54f7"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim&gt; </td></tr>
<tr class="memitem:aebdeb012e0f6180a175f6279b59d54f7"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_cahn_hilliard__three_species_22_d__variable_m_2user_functions_8cc.html#aebdeb012e0f6180a175f6279b59d54f7">userAdaptiveTimeStep</a> (unsigned int step, <a class="el" href="struct_app_ctx.html">AppCtx</a>&lt; dim &gt; &amp;user)</td></tr>
<tr class="separator:aebdeb012e0f6180a175f6279b59d54f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a753d2b98a86fcddff0642b9abfe9e659"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a753d2b98a86fcddff0642b9abfe9e659"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_cahn_hilliard__three_species_22_d__variable_m_2user_functions_8cc.html#a753d2b98a86fcddff0642b9abfe9e659">f_c</a> (std::vector&lt; T &gt; conc, std::vector&lt; std::vector&lt; double &gt; &gt; a)</td></tr>
<tr class="separator:a753d2b98a86fcddff0642b9abfe9e659"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48e1cebb1cd842b281918561f3d74e71"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a48e1cebb1cd842b281918561f3d74e71"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; std::vector&lt; T &gt; &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_cahn_hilliard__three_species_22_d__variable_m_2user_functions_8cc.html#a48e1cebb1cd842b281918561f3d74e71">f_cc</a> (std::vector&lt; T &gt; conc, std::vector&lt; std::vector&lt; double &gt; &gt; a)</td></tr>
<tr class="separator:a48e1cebb1cd842b281918561f3d74e71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afded21c93904623868b6a5bfa62d0a6f"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:afded21c93904623868b6a5bfa62d0a6f"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_cahn_hilliard__three_species_22_d__variable_m_2user_functions_8cc.html#afded21c93904623868b6a5bfa62d0a6f">M_O</a> (std::vector&lt; T &gt; conc)</td></tr>
<tr class="separator:afded21c93904623868b6a5bfa62d0a6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f81f1ae8c8e3a7df3e6e1565d55c7b7"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a2f81f1ae8c8e3a7df3e6e1565d55c7b7"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_cahn_hilliard__three_species_22_d__variable_m_2user_functions_8cc.html#a2f81f1ae8c8e3a7df3e6e1565d55c7b7">MO_c</a> (std::vector&lt; T &gt; conc)</td></tr>
<tr class="separator:a2f81f1ae8c8e3a7df3e6e1565d55c7b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadbccf6631ad847d5a681a548f921ef29"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim&gt; </td></tr>
<tr class="memitem:gadbccf6631ad847d5a681a548f921ef29"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__user_functions.html#gadbccf6631ad847d5a681a548f921ef29">defineParameters</a> (<a class="el" href="struct_app_ctx.html">AppCtx</a>&lt; dim &gt; &amp;user)</td></tr>
<tr class="separator:gadbccf6631ad847d5a681a548f921ef29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab9195b3f02c923dafb2c742df293db7d"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T &gt; </td></tr>
<tr class="memitem:gab9195b3f02c923dafb2c742df293db7d"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__user_functions.html#gab9195b3f02c923dafb2c742df293db7d">residual</a> (bool dV, bool dS, const <a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, double &gt; &amp;x, const <a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, double &gt; &amp;normal, const <a class="el" href="classsolution_scalars.html">solutionScalars</a>&lt; dim, T &gt; &amp;c, const <a class="el" href="classsolution_vectors.html">solutionVectors</a>&lt; dim, T &gt; &amp;u, const <a class="el" href="classtest_function_scalars.html">testFunctionScalars</a>&lt; dim, T &gt; &amp;w1, const <a class="el" href="classtest_function_vectors.html">testFunctionVectors</a>&lt; dim, T &gt; &amp;w2, <a class="el" href="struct_app_ctx.html">AppCtx</a>&lt; dim &gt; &amp;user, Sacado::Fad::SimpleFad&lt; T &gt; &amp;r)</td></tr>
<tr class="separator:gab9195b3f02c923dafb2c742df293db7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a753d2b98a86fcddff0642b9abfe9e659"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;T&gt; f_c </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; T &gt;&#160;</td>
          <td class="paramname"><em>conc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; double &gt; &gt;&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a48e1cebb1cd842b281918561f3d74e71"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::vector&lt;T&gt; &gt; f_cc </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; T &gt;&#160;</td>
          <td class="paramname"><em>conc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; double &gt; &gt;&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="afded21c93904623868b6a5bfa62d0a6f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T M_O </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; T &gt;&#160;</td>
          <td class="paramname"><em>conc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a2f81f1ae8c8e3a7df3e6e1565d55c7b7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;T&gt; MO_c </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; T &gt;&#160;</td>
          <td class="paramname"><em>conc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aebdeb012e0f6180a175f6279b59d54f7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void userAdaptiveTimeStep </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>step</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_app_ctx.html">AppCtx</a>&lt; dim &gt; &amp;&#160;</td>
          <td class="paramname"><em>user</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a36a086407db8194a41f565f2bf6100fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void userBoundaryConditions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_app_ctx.html">AppCtx</a>&lt; dim &gt; &amp;&#160;</td>
          <td class="paramname"><em>user</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a360bfcfddf6eb0952d9904c883f3f741"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double userScalarInitialConditions </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, double &gt; &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>scalar_i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_app_ctx.html">AppCtx</a>&lt; dim &gt; &amp;&#160;</td>
          <td class="paramname"><em>user</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
